
import Vue from 'vue'

import { mapMutations,mapState } from 'vuex'

import {FtList} from './'
import { reg } from './validate'
import {ShowSuccess} from '@/api/request'
Vue.mixin({
    data(){
        return{
            FtList,
            reg:reg
        }
    },

    computed:{
        ...mapState([
            'userInfo'
        ])
    },
    watch:{

    },
    methods:{
        ShowSuccess,
        showFailMsg(message='错误'){
            this.$notify({
                message: message,
                color: '#ad0000',
                background: '#ffe1e1',
            });
        },
        ...mapMutations([
            'changeUserInfo'
        ]),
        gotowhere(name){
            this.$router.push({name})
        },
        changenumber(n){
            this.number+=n;
        },
        gotobackall(){
            this.$router.back()
        }
    }
})
